<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加货品分类信息</title>
<link href="<%=path%>/css/style_min.css" rel="stylesheet" type="text/css"/>
<link href="<%=path%>/css/core.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/css/form.css" rel="stylesheet" type="text/css" />
</head>
<body>
	<form name="productTypeForm" id="productTypeForm"
		action="<%=path%>/product/productType/save.t4m" class="form" method="post">
		<div class="form-group">基本信息</div>
		<table class="form-table" cellspacing="0" cellpadding="0">
			<tr>
				<td class="form-left"><span class="form-required">*</span>类别名称</td>
				<td class="form-right"><input type="text" id="typeName"
					name="productType.name" class="text required" />
				</td>
			</tr>
			<tr>
				<td class="form-left">上级类别</td>
				<td class="form-right"><s:select name="productType.superId"
						list="productTypeList" value="productTypeId" listKey="id"
						listValue="name"
						headerKey="%{@org.team4.constants.StringConstant@ROOT_ID}"
						headerValue="请选择" theme="simple" />
				</td>
			</tr>
			<tr>
				<td class="form-left">说明</td>
				<td class="form-right"><textarea
						style="width: 160px; height: 70px;" class="textarea"
						id="typeRemark" name="productType.remark"></textarea>
				</td>
			</tr>
		</table>
		<s:hidden name="tabId" />
		<s:hidden name="windowPanelId" />
	</form>
    <script src="<%=path%>/js/prototype_for_validation.js" type="text/javascript"></script>
    <script src="<%=path%>/js/validation_cn.js" type="text/javascript"></script>
	<script src="<%=path%>/js/core.js" type="text/javascript"></script>
	<script src="<%=path%>/js/jquery.js" type="text/javascript"></script>
	<script src="<%=path%>/js/Validate.js" type="text/javascript"></script>
	<script type="text/javascript">
 		var valid = new Validation('productTypeForm',{immediate:true});
	</script>
</body>
</html>